package com.lh.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lh.api.vo.ColumnVo;
import com.lh.api.vo.SearchVo;
import com.lh.common.entity.admin.Column;
import com.lh.common.enums.ColumnTypeEnum;
import com.lh.common.enums.ShopSortTypeEnum;
import com.lh.common.enums.ShopTypeEnum;
import com.lh.common.utils.PageUtils;

import java.util.List;

/**
 * @author Xyw
 * @ClassName: ColumnService
 * @Description: (类作用)
 * @date: 2020-06-29 10:59
 */
public interface ColumnService extends IService<Column> {

    List<ColumnVo> columnList();

    Column getColumnStatus(Long cid);

    PageUtils<SearchVo> getColumnShopList(Long cid, ShopSortTypeEnum sortType, ColumnTypeEnum columnType, String qureyTime, Integer pageNum, Integer pageSize);

    Column getColumnName(String name);

    int addColumn(Column column);

    int updateColumn(Column column);
}
